package manager_service.service;

import com.github.pagehelper.PageInfo;
import manager_service.exception.ManagerNotExistException;
import manager_service.exception.UserNotExistException;
import test_common.entity.Course;
import test_common.entity.Manager;
import test_common.entity.User;

import java.util.Date;
import java.util.List;

public interface ManagerService {
    Manager selectManagerByName(Manager manager) throws ManagerNotExistException;
    List<Manager> showManagers();
    PageInfo<User> showUsers(Integer pageNoint, Integer pageSizeint);
//    PageInfo<User> searchUsers(String pageNo,String  pageSize,String loginName, String nickname, String email, String role, Date createDate, Date createDate2, Date signDate, Date signDate2);
    List<User> searchUsers(String loginName, String nickname, String email, String role, Date createDate, Date createDate2, Date signDate, Date signDate2);
    void modifyUserStatus(Integer userId);
    void modifyUser(User user);
    User selectUser(String id) throws UserNotExistException;
}
